<?php
$url = 'http://localhost/soap/wsdl_server.php?wsdl';
try {
    $client = new SoapClient($url);
    $response = $client->add(3,2);  //调用服务器上的add方法
    echo "Response: " , $response;
} catch (SOAPFault $e) {
    echo  "SOAP Fault: " . $e->getMessage();
}